package zl.Service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zl.Dao.UserDao;
import zl.Entity.User;

@Service
public class UserService {
    @Autowired
    UserDao userDao;

    public void saveUser(User user){
        userDao.saveUser(user);
    }

    public boolean selectUserByname(String username){
        return userDao.selectUserByname(username);
    }

   public User selectUserByuser(User user){
        return userDao.selectUserByuser(user);
   }

}
